3.2.88 \(\int x \sqrt {9+12 x+4 x^2} \, dx\)

Optimal. Leaf size=42 \[ \frac {1}{12} \left (4 x^2+12 x+9\right )^{3/2}-\frac {3}{8} (2 x+3) \sqrt {4 x^2+12 x+9} \]

________________________________________________________________________________________

Rubi [A]  time = 0.01, antiderivative size = 42, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, integrand size = 16, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.125, Rules used = {640, 609} \begin {gather*} \frac {1}{12} \left (4 x^2+12 x+9\right )^{3/2}-\frac {3}{8} (2 x+3) \sqrt {4 x^2+12 x+9} \end {gather*}

Antiderivative was successfully verified.

[In]

Int[x*Sqrt[9 + 12*x + 4*x^2],x]

[Out]

(-3*(3 + 2*x)*Sqrt[9 + 12*x + 4*x^2])/8 + (9 + 12*x + 4*x^2)^(3/2)/12

Rule 609

Int[((a_) + (b_.)*(x_) + (c_.)*(x_)^2)^(p_), x_Symbol] :> Simp[((b + 2*c*x)*(a + b*x + c*x^2)^p)/(2*c*(2*p + 1
)), x] /; FreeQ[{a, b, c, p}, x] && EqQ[b^2 - 4*a*c, 0] && NeQ[p, -2^(-1)]

Rule 640

Int[((d_.) + (e_.)*(x_))*((a_.) + (b_.)*(x_) + (c_.)*(x_)^2)^(p_), x_Symbol] :> Simp[(e*(a + b*x + c*x^2)^(p +
 1))/(2*c*(p + 1)), x] + Dist[(2*c*d - b*e)/(2*c), Int[(a + b*x + c*x^2)^p, x], x] /; FreeQ[{a, b, c, d, e, p}
, x] && NeQ[2*c*d - b*e, 0] && NeQ[p, -1]

Rubi steps

\begin {align*} \int x \sqrt {9+12 x+4 x^2} \, dx &=\frac {1}{12} \left (9+12 x+4 x^2\right )^{3/2}-\frac {3}{2} \int \sqrt {9+12 x+4 x^2} \, dx\\ &=-\frac {3}{8} (3+2 x) \sqrt {9+12 x+4 x^2}+\frac {1}{12} \left (9+12 x+4 x^2\right )^{3/2}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]  time = 0.01, size = 30, normalized size = 0.71 \begin {gather*} \frac {x^2 \sqrt {(2 x+3)^2} (4 x+9)}{6 (2 x+3)} \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[x*Sqrt[9 + 12*x + 4*x^2],x]

[Out]

(x^2*Sqrt[(3 + 2*x)^2]*(9 + 4*x))/(6*(3 + 2*x))

________________________________________________________________________________________

IntegrateAlgebraic [F]  time = 0.09, size = 0, normalized size = 0.00 \begin {gather*} \int x \sqrt {9+12 x+4 x^2} \, dx \end {gather*}

Verification is not applicable to the result.

[In]

IntegrateAlgebraic[x*Sqrt[9 + 12*x + 4*x^2],x]

[Out]

Defer[IntegrateAlgebraic][x*Sqrt[9 + 12*x + 4*x^2], x]

________________________________________________________________________________________

fricas [A]  time = 0.41, size = 11, normalized size = 0.26 \begin {gather*} \frac {2}{3} \, x^{3} + \frac {3}{2} \, x^{2} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x*(4*x^2+12*x+9)^(1/2),x, algorithm="fricas")

[Out]

2/3*x^3 + 3/2*x^2

________________________________________________________________________________________

giac [A]  time = 0.16, size = 31, normalized size = 0.74 \begin {gather*} \frac {2}{3} \, x^{3} \mathrm {sgn}\left (2 \, x + 3\right ) + \frac {3}{2} \, x^{2} \mathrm {sgn}\left (2 \, x + 3\right ) - \frac {9}{8} \, \mathrm {sgn}\left (2 \, x + 3\right ) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x*(4*x^2+12*x+9)^(1/2),x, algorithm="giac")

[Out]

2/3*x^3*sgn(2*x + 3) + 3/2*x^2*sgn(2*x + 3) - 9/8*sgn(2*x + 3)

________________________________________________________________________________________

maple [A]  time = 0.04, size = 27, normalized size = 0.64 \begin {gather*} \frac {\left (4 x +9\right ) \sqrt {\left (2 x +3\right )^{2}}\, x^{2}}{12 x +18} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(x*(4*x^2+12*x+9)^(1/2),x)

[Out]

1/6*x^2*(4*x+9)*((2*x+3)^2)^(1/2)/(2*x+3)

________________________________________________________________________________________

maxima [A]  time = 2.87, size = 44, normalized size = 1.05 \begin {gather*} \frac {1}{12} \, {\left (4 \, x^{2} + 12 \, x + 9\right )}^{\frac {3}{2}} - \frac {3}{4} \, \sqrt {4 \, x^{2} + 12 \, x + 9} x - \frac {9}{8} \, \sqrt {4 \, x^{2} + 12 \, x + 9} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x*(4*x^2+12*x+9)^(1/2),x, algorithm="maxima")

[Out]

1/12*(4*x^2 + 12*x + 9)^(3/2) - 3/4*sqrt(4*x^2 + 12*x + 9)*x - 9/8*sqrt(4*x^2 + 12*x + 9)

________________________________________________________________________________________

mupad [B]  time = 0.03, size = 23, normalized size = 0.55 \begin {gather*} \left (\frac {x^2}{3}+\frac {x}{4}-\frac {3}{8}\right )\,\sqrt {4\,x^2+12\,x+9} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(x*(12*x + 4*x^2 + 9)^(1/2),x)

[Out]

(x/4 + x^2/3 - 3/8)*(12*x + 4*x^2 + 9)^(1/2)

________________________________________________________________________________________

sympy [F]  time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int x \sqrt {\left (2 x + 3\right )^{2}}\, dx \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x*(4*x**2+12*x+9)**(1/2),x)

[Out]

Integral(x*sqrt((2*x + 3)**2), x)

________________________________________________________________________________________